package de.koller.aframe.util.misc;

import java.awt.Color;

public class AColor {

	public int color;

	public AColor( int color ) {
		this.color = color;
	}

	public AColor() {
		this( 0x00_000000 );
	}
	
	public void set( int color ) {
		this.color = color;
	}
	
	public int get() {
		return color;
	}
	
	public Color getAWT() {
		return new Color( color );
	}

	@Override
	public int hashCode() {
		int hash = 5;
		hash = 53 * hash + this.color;
		return hash;
	}

	@Override
	public boolean equals( Object obj ) {
		if( obj == null ) {
			return false;
		}
		if( getClass() != obj.getClass() ) {
			return false;
		}
		final AColor other = ( AColor ) obj;
		if( this.color != other.color ) {
			return false;
		}
		return true;
	}
	
}
